<template>
	<view>
		<view v-for="(item,index) in datalist" style="margin: 10rpx;">
			<cardViewText 
			:title="item.title"
			:isTop="item.isTop"
			:author="item.author"
			:comments="item.comments"
			:time="item.time">
			</cardViewText>
		</view>
	</view>
</template>

<script>
	import cardViewText from "../../components/cardViewText.vue"
	export default {
		components: {
			cardViewText
		},
		data() {
			return {
				datalist: [{
					title: "中国何以成为前瞻型国家？",
					isTop: true,
					author: "人民日报",
					comments: 66666,
					time: "2025.10.6"
				}, {
					title: "新华社重磅发文！两岸统一有这些利好",
					isTop: true,
					author: "新闻网",
					comments: 12345,
					time: "2025.10.22"
				}, {
					title: "呵护好中华文明瑰宝 习近平这样嘱托！",
					isTop: false,
					author: "新华社",
					comments: 14732,
					time: "2025.9.22"
				}, {
					title: "军机在南海坠毁后 美航母掉头返航",
					isTop: false,
					author: "快资讯",
					comments: 24782,
					time: "2025.8.7"
				}]
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>